





<form name="appForm" method="post" action="">



                        <?php echo $this->render('nguoidung/toolbar/index.php')?>
                        <div class="clr"></div>
                         <?php echo $this->render('nguoidung/sublink/index.php')?>

                        <!-- BEGIN: CONTENT -->
                        <div id="element-box">
                            <div class="t">
                                <div class="t">
                                    <div class="t"></div>
                                </div>
                            </div>
                            <div class="m">
                                <!-- BEGIN: ELEMENT BOX -->
								<div id="filters">
									<div style="float:left;">
										
									</div>
									<div  style="float:right;">
										<a href = "/ecommerce/public/admin/users/add/">Thêm người dùng</a>
									</div>
									<div class="clr"></div>
								</div>	

                                <!-- Area 4: In du lieu lay tu database -->
                                <table class="adminlist">
                                    <thead>
                                        <tr>
                                            <th width="43" >
                                            	<input type="checkbox" name="checkbox" id="checkbox" onclick="checkedAll()">
                                           	</th>
                                            <th><?php echo $lblUsername;?></th>
                                            <th width="150"><?php echo $lblEmail;?></th>					
                                            <th width="77"><?php echo $lblRole;?></th>
                                            <th width="90">Chi tiết/Sửa/Xóa</th>

                                            <th width="34"><?php echo $lblID;?></th>
                                        </tr>
                                    </thead>
									<?php 
										foreach($this->users as $user){
											$id 			= $user->getId();
											$user_name 		= $user->getUsername();
											$email 			= $user->getEmail();
											$role	= $user->getRole();
											
											$linkInfo		= $this->baseUrl('/admin/users/info/id/' . $id);											
											$btnInfo		= $this->cmsIconButton('View Item',$this->baseUrl('../public/imagesad/icon_info.png'),$linkInfo);
											
											$linkEdit		= $this->baseUrl('/admin/users/update/id/' . $id);
											$btnEdit		= $this->cmsIconButton('Edit Item',$this->baseUrl('../public/imagesad/icon_edit.png'),$linkEdit);
											
											$linkDelete		= $this->baseUrl('/admin/users/delete/id/' . $id);
											$btnDelete		= $this->cmsIconButton('Delete Item',$this->baseUrl('../public/imagesad/icon_del.png'),$linkDelete);
										
											$strIconButton	= $btnInfo . ' ' . $btnEdit . ' ' . $btnDelete;
											
											$cid			= $this->formCheckbox('cid[]',$id);
									?>
                                    <tr class="even">						
                                        <td align="center"><?php echo $cid;?></td>
                                        <td align="center"><?php echo $user_name;?></td>
                                        <td align="center"><?php echo $email;?></td>

                                        <td align="center"><?php echo $role;?></td>
                                        <td align="center"><?php echo $strIconButton;?></td>
                                        <td align="center"><?php echo $id;?></td>
                                    </tr>
                                    <?php 
										}
                                    ?>
                                    <!-- BEGIN: PAGINATION (FOOT) -->
                                    <tfoot>
                                        <tr>
                                            <td colspan="9">
                                                <div class="container">
                                                    <div class="pagination">
                                                    	 <?php
														/* echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); */
														?>
                                                        <div class="limit"></div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>					
                                    </tfoot>				<!-- END: PAGINATION (FOOT) -->
                                </table>
                                <!-- Area 4: In du lieu lay tu database - End -->

                                <!-- END: ELEMENT BOX -->	
                              <div class="clr"></div>
                            </div>
                            <div class="b">
                                <div class="b">
                                    <div class="b"></div>
                                </div>
                            </div>
                        </div>
                        <!-- END: 	CONTENT -->
                    </form>